//
//  File Name   :   OpenGLRendererData.cpp
//  Description :   OpenGLRendererData implementation file.
//  Author      :   William McVicar
//  Mail        :   mcvicar.william@gmail.com
//

//  Precompiled Header
#include "CommonDefines.h"
#ifdef OPENGL

//  Library Includes

//  Local Includes

//  This includes
#include "OpenGLRendererData.h"

//  Macros

//  Static Variables

//  Static Function Prototypes

//  Implementation

using namespace Protein;

RendererData::RendererData()
: m_pRenderingContext        ( NULL )
, m_pBackgroundLoadingContext( NULL )
, m_pDeviceContext           ( NULL )
, m_hWnd                     ( NULL )
{

}

RendererData::~RendererData()
{
  wglMakeCurrent( m_pDeviceContext, NULL );
	wglDeleteContext( m_pRenderingContext );
	wglDeleteContext( m_pBackgroundLoadingContext );
	ReleaseDC( m_hWnd, m_pDeviceContext );
}
#endif